package md.lanjing.com.uitool;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.TypedValue;

import com.viewlibrary.water.WaterFlake;

import java.util.ArrayList;
import java.util.List;

public class WaterActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_water);
        WaterFlake waterFlake=findViewById(R.id.water_flake);
        List<String> list=new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            list.add((i+1)+"g");
        }
        waterFlake.setContentList(list,TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,200,getResources().getDisplayMetrics()));
    }
}
